﻿using AutoMapper;
using BCDto.Location.Horseman;
using BCDto.TMS.Driver;
using BCMongoEntity.TMS.Location.Horseman;

namespace BCService.MapperProfiles.TMS.Location.Horseman
{
    public class HorsemanLocationProfile:Profile
    {
        public HorsemanLocationProfile()
        {
            CreateMap<DriverDto, HorsemanLocationEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<HorsemanLocationEntity, HorsemanLocationBsonDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<HorsemanLocationBsonDto, HorsemanLocationNearDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
